package com.ytjj.qmyx.admin.model.vo;

import java.io.Serializable;
import java.util.Date;

public class ImMessageInfoVO implements Serializable {
    /**
     * 聊天消息表id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 会话表id
     *
     * @mbg.generated
     */
    private Integer sessionId;

    /**
     * 发送者id,或者唯一标识，系统消息的时候为0
     *
     * @mbg.generated
     */
    private String sendUserId;

    /**
     * 消息创建时间即发送时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 接收者id，或者唯一标识
     *
     * @mbg.generated
     */
    private String receiveUserId;

    /**
     * 消息类型 1文本消息、2图片消息、3视频等
     *
     * @mbg.generated
     */
    private Byte messageType;

    /**
     * 消息内容，包含图片或视频的url
     *
     * @mbg.generated
     */
    private String content;

    /**
     * 是否从访问记录窗口进入
     */
    private String isAccess;//有值则是

    private Integer isAll;//是否查全部 0-否 1-是

    public String getIsAccess() {
        return isAccess;
    }

    public void setIsAccess(String isAccess) {
        this.isAccess = isAccess;
    }

    public Integer getIsAll() {
        return isAll;
    }

    public void setIsAll(Integer isAll) {
        this.isAll = isAll;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSessionId() {
        return sessionId;
    }

    public void setSessionId(Integer sessionId) {
        this.sessionId = sessionId;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(String sendUserId) {
        this.sendUserId = sendUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getReceiveUserId() {
        return receiveUserId;
    }

    public void setReceiveUserId(String receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    public Byte getMessageType() {
        return messageType;
    }

    public void setMessageType(Byte messageType) {
        this.messageType = messageType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sessionId=").append(sessionId);
        sb.append(", sendUserId=").append(sendUserId);
        sb.append(", createTime=").append(createTime);
        sb.append(", receiveUserId=").append(receiveUserId);
        sb.append(", messageType=").append(messageType);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}